package com.itheima.test03;

public class LambdaTest3 {
    public static void main(String[] args) {
        RandomNumHandler r = () -> 100;
        System.out.println(r.getNumber());
    }
}
interface RandomNumHandler{
    int getNumber();
}

class RandomNumHandlerDemo{
    void useRandomNumHandler(RandomNumHandler randomNumHandler){
        randomNumHandler.getNumber();
    }
}

